home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmTextPosToXY.z / XmTextPosToXY
Text File  |  1998-10-30  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttPPPPoooossssTTTTooooXXXXYYYY((((3333XXXX))))         UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV         XXXXmmmmTTTTeeeexxxxttttPPPPoooossssTTTTooooXXXXYYYY((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssTTTTooooXXXXYYYY - A Text function that accesses the x and y
  10.           position of a character position
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/Text.h>
  14.           BBBBoooooooolllleeeeaaaannnn XXXXmmmmTTTTeeeexxxxttttPPPPoooossssTTTTooooXXXXYYYY(
  15.           WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
  16.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ppppoooossssiiiittttiiiioooonnnn,
  17.           PPPPoooossssiiiittttiiiioooonnnn ****xxxx,
  18.           PPPPoooossssiiiittttiiiioooonnnn ****yyyy);
  19.  
  20.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  21.           This page documents Motif 2.1.
  22.  
  23.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssTTTTooooXXXXYYYY accesses the _x and _y position, relative to the
  25.           upper left corner of the Text widget, of a given character
  26.           position in the text buffer.
  27.  
  28.           In the case of horizontal writing, the position is the
  29.           origin of the character. In the case of vertical writing,
  30.           the position is the vertical origin of the character.
  31.  
  32.           _w_i_d_g_e_t    Specifies the Text widget ID
  33.  
  34.           _p_o_s_i_t_i_o_n  Specifies the character position in the text for
  35.                     which the _x and _yposition is accessed. This is an
  36.                     integer number of characters from the beginning of
  37.                     the buffer. The first character position is 0
  38.                     (zero).
  39.  
  40.           _x         Specifies the pointer in which the _x position is
  41.                     returned.  The returned position is the distance
  42.                     from the left side of the widget to the left
  43.                     border of the character.  This value is meaningful
  44.                     only if the function returns True.
  45.  
  46.           _y         Specifies the pointer in which the _y position is
  47.                     returned.  The returned position is the distance
  48.                     from the top of the widget to the character's
  49.                     baseline.  This value is meaningful only if the
  50.                     function returns True.
  51.  
  52.           For a complete definition of Text and its associated
  53.           resources, see XXXXmmmmTTTTeeeexxxxtttt(3).
  54.  
  55.      RRRREEEETTTTUUUURRRRNNNN
  56.           This function returns True if the character position is
  57.           displayed in the Text widget; otherwise, it returns False,
  58.           and no _x or _yvalue is returned.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmTTTTeeeexxxxttttPPPPoooossssTTTTooooXXXXYYYY((((3333XXXX))))         UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV         XXXXmmmmTTTTeeeexxxxttttPPPPoooossssTTTTooooXXXXYYYY((((3333XXXX))))
  71.  
  72.  
  73.  
  74.      RRRREEEELLLLAAAATTTTEEEEDDDD
  75.           XXXXmmmmTTTTeeeexxxxtttt(3).
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/24/98)
  130.  
  131.  
  132.  
  133.